const path = require('path');

module.exports={
    mode:"development",
    // 出口文件
    entry:"./src/js/index.js",
    output:{
        // 输出的目录,绝对路径
        // path:"./a",
        path:path.join(__dirname,"./dist"),

        // 输出的文件名,相对于path的路径
        filename:"./bundle.js"
    }
}




/* 
Invalid configuration object. Webpack has been initialised using a configuration object th
at does not match the API schema.
 - configuration.output.path: The provided value "./a" is not an absolute path!
   -> The output directory as **absolute path** (required). */